.PHONY:all
all:server client server-debug

.PHONY:server
.PHONY:client
.PHONY:server-debug

server:ServerMain.cc
	g++  -o $@ $^ -std=c++14 -lpthread -ljsoncpp
client:ClientMain.cc
	g++  -o $@ $^ -std=c++14 -ljsoncpp
# server-debug:ServerMain.cc
#  	g++  -o $@ $^ -std=c++14 -lpthread -ljsoncpp -g

.PHONY:clean
clean:server client server-debug
	rm -rf server client server-debug